package com.softserveinc.ita.kaiji.model.game;


/**
 * Factory of games creates game based on <code>GameInfo</code>
 * Before creating factory will validate <code>GameInfo</code>.
 * @author Paziy Evgeniy
 * @version 1.2
 * @since 23.03.14
 */
public final class GameFactory {

    private static final GameFactory INSTANCE = new GameFactory();

    private GameFactory() {}

    public static GameFactory getInstance() {
        return INSTANCE;
    }

    //todo here will be created games depending on GameInfo
    public Game makeGame(GameInfo gameInfo) {
        return new PlayerVsBotGameImpl(gameInfo);
    }
}
